class FilmObcy < CachedModel
  set_table_name 'filmy_obce'
  set_primary_key 'id'
  belongs_to :kino,
    :class_name => "Kino" ,
    :foreign_key => "ID_kino"

  belongs_to :film,
    :class_name => "Film" ,
    :foreign_key => "ID_film"

  validates_presence_of :ID_film, :ID_kino, :obce_id

end
